package com.System.LearnSystem;
import com.fasterxml.jackson.annotation.JsonIgnore;

public class Teacher extends User
	{
		private String teacherNo;//教师工号
		protected Long departmentId;//所属院系id
		private String name;//教师姓名
		protected String phone;//联系电话
		protected String email;//邮箱
		public Teacher()
		{
			
		}
		public Teacher(User user)//继承父类信息的方法
		{
			this.id = user.getId();
			this.username = user.getUsername();
			this.password = user.getPassword();
			this.createTime = user.getCreateTime();
			this.updateTime = user.getUpdateTime();
			this.status = user.getStatus();
			this.role = user.getRole();
		}
		
		public String getTeacherNo() {
			return teacherNo;
		}
		public void setTeacherNo(String teacherNo) {
			this.teacherNo = teacherNo;
		}
		
		
		public Long getDepartmentId() {
			return departmentId;
		}
		public void setDepartmentId(Long departmentId) {
			this.departmentId = departmentId;
		}
		
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		
		
		public String getPhone() {
			return phone;
		}
		public void setPhone(String phone) {
			this.phone = phone;
		}
		
		
		public String getEmail() {
			return email;
		}
		public void setEmail(String email) {
			this.email = email;
		}

	}

